import 'package:fate_blind_box/utils/loading.dart';
import 'package:universal_html/html.dart' as html;

class Web {

  Web._();

  static Map<String, String> getParams() {
    // var htt = 'https://ahpsvr.anyeoa.com?inviteCoded=eQn2ia';
    // Uri.dataFromString(htt).queryParameters;
    return Uri.dataFromString(html.window.location.href).queryParameters;
  }

  static void reload(String url) {
    try{
      html.window.location.href = url;
    }catch(e){
       toast(e.toString());
    }

  }

}